package com.fenqing.utils;

import cn.hutool.json.JSONUtil;

import java.util.List;

/**
 * @author fenqing
 */
public class StringToStringListEncoder implements Encoder<String, List<String>> {

    public StringToStringListEncoder() {
    }

    @Override
    public List<String> encoder(String input) {
        return JSONUtil.parseArray(input).toList(String.class);
    }
}